// 引入二次封装的axios
import mockRequest from '@/utils/mockRequest'
export default {
    namespaced:true,
    state:{
        list:{}
    },
    actions:{
        async getData({commit}){
             let result=await mockRequest.get('/home/list')
             if(result.code==20000){
                commit('GETDATA',result.data)
             }
        }
    },
    mutations:{
        GETDATA(state,list){
            state.list=list
        }
    },
    getters:{

    }
    
}